package com.linln.admin.ws.api;

import com.dtflys.forest.annotation.*;
import com.dtflys.forest.converter.json.FastjsonEncoder;
import com.dtflys.forest.http.ForestResponse;

/**
 * @author songhao
 * @version 1.0
 * @description: TODO
 * @date 2023/1/4 16:08
 */
public interface MessageApi {

    @Post(
            url = "https://graph.facebook.com/v15.0/{phoneId}/messages",
            headers = {
                    "Authorization: Bearer ${token}"
            }
    )
    @FastjsonEncoder
    String sendMessage(@Var("token") String token, @Var("phoneId") String phoneId , @JSONBody PhoneMessage phoneMessage);
}
